package test;

import controller.UserController;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class springtest {

    @Test
    public void test1(){
        ApplicationContext app =new ClassPathXmlApplicationContext("applicationContext.xml");
        UserController userController =(UserController) app.getBean("userController");
        userController.execute();
        userController.getUserService().deleteuser();


    }
}
